#!/bin/bash
if [[ `netstat -anptl|grep :25|wc -l` != 1 ]]; then
    postfix start ;
fi
if [[ "$#" != 1 ]]; then
  echo "Parameter error:requires a parameter"
fi
rpm -q mailx &> /dev/null || yum -y install mailx
comments=$1
echo $comments | mailx -r staugur@saintic.com -s "Sdp2 Error." staugur@vip.qq.com
